<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>成绩公布</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/bootstrap.min.css">
<link href="__PUBLIC__/css/font-awesome.css" rel="stylesheet">
<script src="__PUBLIC__/js/jquery.min.js"></script>
<style type="text/css">
.autoflow-x {
	overflow-x: auto;
}
</style>
</head>
<body>
<!-- 成绩公布 -->
<div class="grades">
	<div class="autoflow-x">
		<table class="table" id="saishi">
			<tr style="background-color: #F2F3F7;">
				<th>ID</th>
				<th>赛事</th>
				<th>操作</th>
			</tr>
			<form action="" method="get">
				<volist name="all_gamelist" id="vo">
					<tr>
						<td>{$vo.all_id}</td>
						<td>{$vo.all_name}</td>
						<td>
							<form>
							<input type="submit" value="进入" class="btn" name="submit">
								<input type="hidden" value="su" name="step">
								<input type="hidden" value="{$vo.all_id}" name="id">	
							</form>
						</td>
					</tr>
				</volist>
			</form>
		</table>
		<table class="table" id="zubie">
			<tr style="background-color: #F2F3F7;">
				<th>场次名</th>
				<th>性质</th>
				<th>组别</th>
				<th>开赛时间</th>
				<th>操作</th>
			</tr>
			<form action="" method="get">
				<volist name="g_list" id="vo">
					<tr>
						<td>{$vo.g_name}</td>
						<td>
							<if condition="$vo.g_sex  eq 0">不限
								<elseif condition="$vo.g_sex eq 1" />男
								<else />女
							</if>
									{$vo.g_type}</td>
						<td>{$vo.g_type}</td>
						<td>{$vo.g_start}</td>
						<td>
							<form>
								<input type="hidden" value="last" name="step">
								<input type="hidden" value="{$vo.g_id}" name="g_id">
								<input type="submit" value="进入" class="btn">
							</form>
						</td>
					</tr>
				</volist>
			</form>
		</table>
		<form id="luru" action="" method="post">
			<table class="table">
				<tr style="background-color: #F2F3F7;">
					<th>背号</th>
					<th>姓名</th>
					<th>性别</th>
					<th>年龄</th>
					<th>输入成绩</th>
					<th>操作</th>
				</tr>
				<volist name="jon_list" id="vol">
					<tr>
						<td>{$vol.back_no}</td>
						<td>{$vol.u_name}</td>
						<td>{$vol.u_sex}</td>
						<td>{$vol.u_age}</td>
						<td><input type="text" name="grade" value="{$vol.gd_grade}" /></td>
						<input type="hidden" name="uid" value="{$vol.u_id}">
						<td><input type="submit" class="btn btn-info"></td>
					</tr>
				</volist>
			</table>
		</form>
	</div>
</div>
<script type="text/javascript">
	var saishi = {$saishi},
	zubie = {$zubie};
	function setGrades(){
		if (saishi == 1 && zubie == -1){
			$("#saishi").hide();
			$("#zubie").show();
			$("#luru").hide();
		}
		if (saishi == 1 && zubie == 1) {
			$("#saishi").hide();
			$("#zubie").hide();
			$("#luru").show();
		}
		if (saishi == -1){
			$("#saishi").show();
			$("#zubie").hide();
			$("#luru").hide();
		}
	}
	setGrades();
	function back(){
			window.history.back();
		}
</script>
</body>
</html>